<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
$this->load->helper('url');
?><link rel="stylesheet" type="text/css" href="/static/css/upload.css">
<form id="ff" method="post" style="margin:10px 0px 0px 10px;display:block;">
	<input type="hidden" name="id" value="<?php echo $id;?>">
	<table style="font-size:12px;" cellspacing="5">
		
		<tr>
			<td>虚拟币小数位数</td>
			<td><input type="text" class="easyui-validatebox" name="xnb_dec" value="<?php echo $xnb_dec;?>" required="true"></td>
		</tr>
		
		<tr>
			<td>虚拟币充值最低数量</td>
			<td><input type="text" class="easyui-validatebox" name="xnb_fill_min" value="<?php echo $xnb_fill_min;?>" required="true"></td>
		</tr>
		<tr>
			<td>虚拟币充值说明</td>
			<td><textarea name="xnb_fill_notice" cols=100 rows=5 required="true"><?php echo $xnb_fill_notice;?></textarea></td>
		</tr>
		<tr>
			<td>虚拟币提现最低金额</td>
			<td><input type="text" class="easyui-validatebox" name="xnb_draw_min" value="<?php echo $xnb_draw_min;?>" required="true"></td>
		</tr>
		<tr>
			<td>虚拟币提现手续费</td>
			<td><input type="text" class="easyui-validatebox" name="xnb_draw_fee" value="<?php echo $xnb_draw_fee;?>" required="true"> %</td>
		</tr>
		<tr>
			<td>虚拟币提现说明</td>
			<td><textarea name="xnb_draw_notice" cols=100 rows=5 required="true"><?php echo $xnb_draw_notice;?></textarea></td>
		</tr>
		<tr>
			<td>钱包服务器主账户密码</td>
			<td><input type="text" class="easyui-validatebox" name="main_account_pwd" value="<?php echo $main_account_pwd;?>" required="true"> 一旦确定千万不可更改，密码要牢记</td>
		</tr>
		<tr>
			<td>钱包服务器主账户地址</td>
			<td><input type="text" class="easyui-validatebox" name="main_account_address" value="<?php echo $main_account_address;?>" required="true"> 该地址接收其他地址所有币的转入。一旦确定千万不可更改</td>
		</tr>
		<tr>
			<td>开启ETH充值</td>
			<td>
			<select name="is_eth_fill">
			<option value="0" 
<?php
if ($is_eth_fill == 0) {
?>selected<?php
}

?>>否</option>
			<option value="1" 
<?php
if ($is_eth_fill == 1) {
?>selected<?php
}

?>>是</option>
			</select>
			</td>
		</tr>
		<tr>
			<td></td>
			<td>
			<button type="submit" class="easyui-linkbutton" iconCls="icon-ok">提交</button>
			</td>
		</tr>
	</table>
</form>

<script language="javascript">
$(function(){
	$('#ff').form({
		url:'<?php echo site_url('money_config/update');?>',
		onSubmit:function(){
			return $(this).form('validate');
		},
		success:function(data){
			data = eval('('+data+')');
			$.messager.alert('信息提示',data.msg,'info');
			if(data.error == 0){
				$('#win').window('close');
				$('#tt').datagrid('reload');
			}
		}
	});
});
</script>